package com.fishbone.redis;

import org.redisson.codec.Kryo5Codec;
import org.redisson.config.Config;
import org.redisson.spring.starter.RedissonAutoConfigurationCustomizer;

/**
 * @ClassName RedissonConfigCustomizer
 * @Author huyaxi
 * @DATE 2020/7/24 16:50
 */
public class RedissonConfigCustomizer implements RedissonAutoConfigurationCustomizer {

    @Override
    public void customize(Config configuration) {
        configuration.setCodec(new Kryo5Codec());
    }
}
